package cz.none.bezbarier.web.util;

import java.text.Normalizer;
import java.text.Normalizer.Form;

public class UrlUtils {
	public static String stringToUrl(String string) {
		return Normalizer.normalize(string, Form.NFD).replaceAll("\\p{InCombiningDiacriticalMarks}+", "")
				.replaceAll("[^\\p{Alnum}]+", "-");
	}
}
